<!-- 详情页 -->
<template>
<div class="xqy">
  <div class="xqy" v-if="(jtnr.length != 0)">{{jtnr[0].nr}}</div>
  <button class="fh" @click="fh()">返回</button>
</div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      jtnr: [],
    };
  },
  computed: {
    sjdataa: function () {
      return this.$store.state.shujiadata;
    },
  },
  watch: {},
  methods: {
    fh(){
      history.go(-1);
    }
  },
  created() {},
  mounted() {
    // console.log(this.$route.query.id);
    // console.log(this.sjdataa);
    var idd = this.$route.query.id;
    this.jtnr = this.sjdataa.filter((v) => {
      if (v.id == idd) {
        return v;
      }
    });
    // console.log(this.jtnr);
  },
};
</script>
<style scoped>
.xqy {
  height: 100%;
  background-color: #d0b896;
  font-size: 0.27rem;
}
.fh {
  position: static;
  bottom: 2rem;
  right: 0.2rem;
}
</style>